<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>会话超时</title>
<script src="<%=request.getContextPath() %>/res/js/jquery-1.7.2.min.js" type="text/javascript"></script>
</head>
<body style="background:#FFF;">
<h3>会话超时</h3>
<a target="_top" href="<%=request.getContextPath() %>/sys/login.do">重新登录</a>

<script type="text/javascript">
var timerId;
$(function(){
	$('body').bind('keyup', function(event) {
		if(event.keyCode == 13){
			if(!!timerId){
				window.clearTimeout(timerId);
			}
			top.location.href = '<%=request.getContextPath() %>/sys/login.do';
		}
	});
	timerId = window.setTimeout(function(){top.location.href = '<%=request.getContextPath() %>/sys/login.do';}, 3000);
});
</script>

</body>
</html>